pub struct RedisKey;

impl RedisKey {
    pub const AUTH: &'static str = "auth:token";
    pub const USER: &'static str = "auth:user";
    pub const PATH: &'static str = "auth:path";

    pub fn auth_token_key(token: &String) -> String {
        format!("{}:{}", Self::AUTH, token)
    }

    pub fn auth_user_key(token: &String) -> String {
        format!("{}:{}", Self::USER, token)
    }

    pub fn auth_path_key(token: &String) -> String {
        format!("{}:{}", Self::PATH, token)
    }
}
